home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
BASIC
/
INTERRUP.BAS
< prev
next >
Wrap
BASIC Source File
|
2000-09-26
|
1KB
|
49 lines
cls
?"Interrupt-Einsprung-Lister Version 1.0 by Alligator Software Inc."
?"===================================================================="
?""
?"Interrupt Segment Offset"
?"------------------------------------------"
for i=0 to 255
DEF SEG = 0
?"INT:";
CALL TR01(i)
offs&=peek(i*4)+256*peek((i*4)+1)
segm&=peek((i*4)+2)+256*peek((i*4)+3)
if not (segm&=0 or offs&=0) then
def seg = segm&
if not (peek(offs&)=207) then
CALL TR00(hex$(segm&),0)
CALL TR00(hex$(offs&),1)
else
?"Not installed - OpCode IRET"
end if
else
?"Not installed - No Segment"
end if
if (((i+2) mod 22)=0) then
?"--- Fortsetzung mit beliebiger Taste -----"
while inkey$="":wend
end if
next
end
sub TR00(a$,x) static
if(len(a$)=1) then a$="000"+a$
if(len(a$)=2) then a$="00"+a$
if(len(a$)=3) then a$="0"+a$
a$=a$+" "
if x then ?a$ else ?a$;
end sub
sub TR01(x) static
a$=str$(x)
b$=hex$(x)
if(len(a$)=1) then a$=" "+a$
if(len(a$)=2) then a$=" "+a$
a$=a$+" "
if(len(b$)=1) then b$="0"+b$
a$=a$+b$+" "
?a$;
end sub